package com.RedRiver.hospitalsystem.finance_service.client.param;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class FinancePageFrom {
    @NotNull(message = "current不能为空")
    @Min(value = 1,message = "current格式不对，最小为1")
    private Long current;
    @NotNull(message = "size不能为空")
    @Max(value =100,message = "每页最大为100条")
    private Long size;
}
